package com.rt.easyjava.base.biz1.dto.base;


import com.rt.easyjava.base.biz1.dto.TmptTbColumnBizDto;
import com.rt.easyjava.common.base.CommonDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author wuxiaoyong
 * @since 2020-11-13
 */

@ApiModel(description = "TmptTableDto传输对象")
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TmptTableDto extends CommonDto implements Serializable{
    private static final long serialVersionUID = 1L;

    private String datasource;
    private Integer hasdelbtn;
    private Integer hascompanyid;
    private String styleAdddialog;
    private Integer isdialogAdddialog;
    private Long createmanId;
    private Long modifymanId;
    private Long companyId;
    private String treeJson;
    private String idType;
    private String btnMulti;

    private Integer id; // id或Id结尾，数据类型保持数据库一致
    private String keyrandom;
    private Integer mode;
    private String primarykey;
    private String tablename;
    private String tablenameshow;
    private String one2many;
    private Integer hasaddbtn;
    private Integer hasdownloadreportbtn;
    private Integer haseditbtn;
    private Integer hashistorybtn;
    private String beanmethod;
    private String beanobject;
    private String beanhistorymethod;
    private String tablealiasname;
    private String sqlcount;
    private String tablenamehistorysql;
    private String tablenamesql;
    private String sqlcounthistory;
    private String sqlpage;
    private String sqlpagehistory;
    private String sqlreport;
    private String version;
    private String sqlsum;
    private String createdate;
        private String createman;
    @ApiModelProperty(hidden = true)
    private Object deleteflag; // 枚举，通过dozer转换:  当bean->dto时, 放入json对象 如{'id':1, 'name':'无效'}； 当dto->bean时, object->Integer
    private String modifydate;
        private String modifyman;
    private String foreignkey;
    private String sqlprocedure;
    private Integer height4adddialog;
    private Integer width4adddialog;
    private String chartjson;
    private Integer chartheight;
    private Integer chartwidth;
    private String interceptaddmethod;
    private String intercepteditmethod;
    private String interceptobject;
    private Integer hascheckbox;

    // One to Many
    // 关联对象： dozer 自动进行深度映射
    @ApiModelProperty(hidden = true)
    private List<TmptTbColumnBizDto> tmptTbColumnList;

    //----------------------------------------
    // 与页面交互时的参数
    //----------------------------------------
    private String createdate_Start;
    private String createdate_End;
    private String modifydate_Start;
    private String modifydate_End;
}
